/**
 * Copyright (C) 2021 - 2031 O-Cubes Co., Ltd.
 */

/****************************************************************
 *  @file    dw_spi_hal_cfg.h
 *  @brief   Designware spi controller hal configuration header file
 *  @version v1.0
 *  @date    03. Apr. 2023
 *  @author  liuchao
 ****************************************************************/

#ifndef __DW_SPI_HAL_CFG_H__
#define __DW_SPI_HAL_CFG_H__

#ifndef DW_SPI_CALC_FIFO_LEN_ENABLE
	#define DW_SPI_CALC_FIFO_LEN_ENABLE             (1)     /*!< Defaultly enable calculate fifo length */
#endif

#ifndef DW_SPI_MAX_FIFO_LENGTH
	#define DW_SPI_MAX_FIFO_LENGTH                  (256)   /*!< Max FIFO depth for designware SPI device */
#endif

#ifndef DW_SPI_MIN_FIFO_LENGTH
	#define DW_SPI_MIN_FIFO_LENGTH                  (2)     /*!< Min FIFO depth for designware SPI device */
#endif

#endif /* __DW_SPI_HAL_CFG_H__ */
